<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>break和continue</title>
    <script type="text/javascript">
        for (var i = 1; i < 10; i++) {
            if(i==5){
                continue;//中断本次循环，继续执行下次循环
            }
            console.log(i);
            // if(i==5){
            //     break;//终止运行
            // }
        }
        console.log("循环结束");
    </script>
</head>
<body>
    
</body>
</html>